import { withInstall } from '/@/utils';
import type { App } from 'vue';

// 基本全局公用组件
const components = import.meta.globEager('./components/**/*.vue');

export default function setupComp(app: App<Element>) {
  // 注册基本的全局公用组件
  Object.keys(components).forEach((key) => {
    app.use(withInstall(components[key].default));
  });
}
